package csel.view;


import javax.swing.ImageIcon;
import javax.swing.JToggleButton;

import csel.model.items.UseableItem;

public class UseableItemButton extends JToggleButton
{
	private UseableItem item;
	private int price;
	
	public UseableItemButton(UseableItem item){
		super(new ImageIcon(RepresentationFactory.getInstance().get(item).getSimpleImage()));
		this.item = item;
		price = item.getFlexPrice();
	}
	public UseableItem getUseableItem(){
		return item;
	}
	public String getPrice(){
		return ""+price;
	}
	
	
}
